entry: Ensure we unset the magnifier widget on ::destroy
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 12 Jun 2015 11:30:34 +0000 (13:30 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 12 Jun 2015 11:33:13 +0000 (13:33 +0200)
Otherwise there's dangling signal handlers which cause warnings
at the time we attempt to disconnect these.

gtk/gtkentry.c

index 61c3ba48234868f31f0972eb2d0e2e80e0ce0527..4865e96e9e6f6bc068d5eb835dcb926f9b68d01c 100644 (file)
@@ -2965,6 +2965,9 @@ gtk_entry_destroy (GtkWidget *widget)
       priv->recompute_idle = 0;
     }
 
+  if (priv->magnifier)
+    _gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
+
   GTK_WIDGET_CLASS (gtk_entry_parent_class)->destroy (widget);
 }